import { defineConfig } from "tsup";

export default defineConfig({
  entry: ["src/index.ts"],
  format: ["cjs", "esm"],
  dts: true,
  splitting: false,
  sourcemap: true,
  clean: true,
  external: [
    "react",
    "react-native",
    "react-native-svg",
    "@gluestack-ui/*",
    "@gorhom/bottom-sheet",
    "@legendapp/motion",
  ],
  esbuildOptions(options, context) {
    options.loader = {
      ".js": "jsx",
    };
  },
});
